package com.project.user.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LoginTokenExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LoginTokenExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andLoginUseridIsNull() {
            addCriterion("Login_userId is null");
            return (Criteria) this;
        }

        public Criteria andLoginUseridIsNotNull() {
            addCriterion("Login_userId is not null");
            return (Criteria) this;
        }

        public Criteria andLoginUseridEqualTo(String value) {
            addCriterion("Login_userId =", value, "loginUserid");
            return (Criteria) this;
        }

        public Criteria andLoginUseridNotEqualTo(String value) {
            addCriterion("Login_userId <>", value, "loginUserid");
            return (Criteria) this;
        }

        public Criteria andLoginUseridGreaterThan(String value) {
            addCriterion("Login_userId >", value, "loginUserid");
            return (Criteria) this;
        }

        public Criteria andLoginUseridGreaterThanOrEqualTo(String value) {
            addCriterion("Login_userId >=", value, "loginUserid");
            return (Criteria) this;
        }

        public Criteria andLoginUseridLessThan(String value) {
            addCriterion("Login_userId <", value, "loginUserid");
            return (Criteria) this;
        }

        public Criteria andLoginUseridLessThanOrEqualTo(String value) {
            addCriterion("Login_userId <=", value, "loginUserid");
            return (Criteria) this;
        }

        public Criteria andLoginUseridLike(String value) {
            addCriterion("Login_userId like", value, "loginUserid");
            return (Criteria) this;
        }

        public Criteria andLoginUseridNotLike(String value) {
            addCriterion("Login_userId not like", value, "loginUserid");
            return (Criteria) this;
        }

        public Criteria andLoginUseridIn(List<String> values) {
            addCriterion("Login_userId in", values, "loginUserid");
            return (Criteria) this;
        }

        public Criteria andLoginUseridNotIn(List<String> values) {
            addCriterion("Login_userId not in", values, "loginUserid");
            return (Criteria) this;
        }

        public Criteria andLoginUseridBetween(String value1, String value2) {
            addCriterion("Login_userId between", value1, value2, "loginUserid");
            return (Criteria) this;
        }

        public Criteria andLoginUseridNotBetween(String value1, String value2) {
            addCriterion("Login_userId not between", value1, value2, "loginUserid");
            return (Criteria) this;
        }

        public Criteria andLoginIpv4IsNull() {
            addCriterion("Login_ipv4 is null");
            return (Criteria) this;
        }

        public Criteria andLoginIpv4IsNotNull() {
            addCriterion("Login_ipv4 is not null");
            return (Criteria) this;
        }

        public Criteria andLoginIpv4EqualTo(String value) {
            addCriterion("Login_ipv4 =", value, "loginIpv4");
            return (Criteria) this;
        }

        public Criteria andLoginIpv4NotEqualTo(String value) {
            addCriterion("Login_ipv4 <>", value, "loginIpv4");
            return (Criteria) this;
        }

        public Criteria andLoginIpv4GreaterThan(String value) {
            addCriterion("Login_ipv4 >", value, "loginIpv4");
            return (Criteria) this;
        }

        public Criteria andLoginIpv4GreaterThanOrEqualTo(String value) {
            addCriterion("Login_ipv4 >=", value, "loginIpv4");
            return (Criteria) this;
        }

        public Criteria andLoginIpv4LessThan(String value) {
            addCriterion("Login_ipv4 <", value, "loginIpv4");
            return (Criteria) this;
        }

        public Criteria andLoginIpv4LessThanOrEqualTo(String value) {
            addCriterion("Login_ipv4 <=", value, "loginIpv4");
            return (Criteria) this;
        }

        public Criteria andLoginIpv4Like(String value) {
            addCriterion("Login_ipv4 like", value, "loginIpv4");
            return (Criteria) this;
        }

        public Criteria andLoginIpv4NotLike(String value) {
            addCriterion("Login_ipv4 not like", value, "loginIpv4");
            return (Criteria) this;
        }

        public Criteria andLoginIpv4In(List<String> values) {
            addCriterion("Login_ipv4 in", values, "loginIpv4");
            return (Criteria) this;
        }

        public Criteria andLoginIpv4NotIn(List<String> values) {
            addCriterion("Login_ipv4 not in", values, "loginIpv4");
            return (Criteria) this;
        }

        public Criteria andLoginIpv4Between(String value1, String value2) {
            addCriterion("Login_ipv4 between", value1, value2, "loginIpv4");
            return (Criteria) this;
        }

        public Criteria andLoginIpv4NotBetween(String value1, String value2) {
            addCriterion("Login_ipv4 not between", value1, value2, "loginIpv4");
            return (Criteria) this;
        }

        public Criteria andLoginIpaddressIsNull() {
            addCriterion("Login_ipAddress is null");
            return (Criteria) this;
        }

        public Criteria andLoginIpaddressIsNotNull() {
            addCriterion("Login_ipAddress is not null");
            return (Criteria) this;
        }

        public Criteria andLoginIpaddressEqualTo(String value) {
            addCriterion("Login_ipAddress =", value, "loginIpaddress");
            return (Criteria) this;
        }

        public Criteria andLoginIpaddressNotEqualTo(String value) {
            addCriterion("Login_ipAddress <>", value, "loginIpaddress");
            return (Criteria) this;
        }

        public Criteria andLoginIpaddressGreaterThan(String value) {
            addCriterion("Login_ipAddress >", value, "loginIpaddress");
            return (Criteria) this;
        }

        public Criteria andLoginIpaddressGreaterThanOrEqualTo(String value) {
            addCriterion("Login_ipAddress >=", value, "loginIpaddress");
            return (Criteria) this;
        }

        public Criteria andLoginIpaddressLessThan(String value) {
            addCriterion("Login_ipAddress <", value, "loginIpaddress");
            return (Criteria) this;
        }

        public Criteria andLoginIpaddressLessThanOrEqualTo(String value) {
            addCriterion("Login_ipAddress <=", value, "loginIpaddress");
            return (Criteria) this;
        }

        public Criteria andLoginIpaddressLike(String value) {
            addCriterion("Login_ipAddress like", value, "loginIpaddress");
            return (Criteria) this;
        }

        public Criteria andLoginIpaddressNotLike(String value) {
            addCriterion("Login_ipAddress not like", value, "loginIpaddress");
            return (Criteria) this;
        }

        public Criteria andLoginIpaddressIn(List<String> values) {
            addCriterion("Login_ipAddress in", values, "loginIpaddress");
            return (Criteria) this;
        }

        public Criteria andLoginIpaddressNotIn(List<String> values) {
            addCriterion("Login_ipAddress not in", values, "loginIpaddress");
            return (Criteria) this;
        }

        public Criteria andLoginIpaddressBetween(String value1, String value2) {
            addCriterion("Login_ipAddress between", value1, value2, "loginIpaddress");
            return (Criteria) this;
        }

        public Criteria andLoginIpaddressNotBetween(String value1, String value2) {
            addCriterion("Login_ipAddress not between", value1, value2, "loginIpaddress");
            return (Criteria) this;
        }

        public Criteria andLoginIssuccessfullyIsNull() {
            addCriterion("Login_isSuccessfully is null");
            return (Criteria) this;
        }

        public Criteria andLoginIssuccessfullyIsNotNull() {
            addCriterion("Login_isSuccessfully is not null");
            return (Criteria) this;
        }

        public Criteria andLoginIssuccessfullyEqualTo(String value) {
            addCriterion("Login_isSuccessfully =", value, "loginIssuccessfully");
            return (Criteria) this;
        }

        public Criteria andLoginIssuccessfullyNotEqualTo(String value) {
            addCriterion("Login_isSuccessfully <>", value, "loginIssuccessfully");
            return (Criteria) this;
        }

        public Criteria andLoginIssuccessfullyGreaterThan(String value) {
            addCriterion("Login_isSuccessfully >", value, "loginIssuccessfully");
            return (Criteria) this;
        }

        public Criteria andLoginIssuccessfullyGreaterThanOrEqualTo(String value) {
            addCriterion("Login_isSuccessfully >=", value, "loginIssuccessfully");
            return (Criteria) this;
        }

        public Criteria andLoginIssuccessfullyLessThan(String value) {
            addCriterion("Login_isSuccessfully <", value, "loginIssuccessfully");
            return (Criteria) this;
        }

        public Criteria andLoginIssuccessfullyLessThanOrEqualTo(String value) {
            addCriterion("Login_isSuccessfully <=", value, "loginIssuccessfully");
            return (Criteria) this;
        }

        public Criteria andLoginIssuccessfullyLike(String value) {
            addCriterion("Login_isSuccessfully like", value, "loginIssuccessfully");
            return (Criteria) this;
        }

        public Criteria andLoginIssuccessfullyNotLike(String value) {
            addCriterion("Login_isSuccessfully not like", value, "loginIssuccessfully");
            return (Criteria) this;
        }

        public Criteria andLoginIssuccessfullyIn(List<String> values) {
            addCriterion("Login_isSuccessfully in", values, "loginIssuccessfully");
            return (Criteria) this;
        }

        public Criteria andLoginIssuccessfullyNotIn(List<String> values) {
            addCriterion("Login_isSuccessfully not in", values, "loginIssuccessfully");
            return (Criteria) this;
        }

        public Criteria andLoginIssuccessfullyBetween(String value1, String value2) {
            addCriterion("Login_isSuccessfully between", value1, value2, "loginIssuccessfully");
            return (Criteria) this;
        }

        public Criteria andLoginIssuccessfullyNotBetween(String value1, String value2) {
            addCriterion("Login_isSuccessfully not between", value1, value2, "loginIssuccessfully");
            return (Criteria) this;
        }

        public Criteria andLoginCreatetimeIsNull() {
            addCriterion("Login_createTime is null");
            return (Criteria) this;
        }

        public Criteria andLoginCreatetimeIsNotNull() {
            addCriterion("Login_createTime is not null");
            return (Criteria) this;
        }

        public Criteria andLoginCreatetimeEqualTo(Date value) {
            addCriterion("Login_createTime =", value, "loginCreatetime");
            return (Criteria) this;
        }

        public Criteria andLoginCreatetimeNotEqualTo(Date value) {
            addCriterion("Login_createTime <>", value, "loginCreatetime");
            return (Criteria) this;
        }

        public Criteria andLoginCreatetimeGreaterThan(Date value) {
            addCriterion("Login_createTime >", value, "loginCreatetime");
            return (Criteria) this;
        }

        public Criteria andLoginCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("Login_createTime >=", value, "loginCreatetime");
            return (Criteria) this;
        }

        public Criteria andLoginCreatetimeLessThan(Date value) {
            addCriterion("Login_createTime <", value, "loginCreatetime");
            return (Criteria) this;
        }

        public Criteria andLoginCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("Login_createTime <=", value, "loginCreatetime");
            return (Criteria) this;
        }

        public Criteria andLoginCreatetimeIn(List<Date> values) {
            addCriterion("Login_createTime in", values, "loginCreatetime");
            return (Criteria) this;
        }

        public Criteria andLoginCreatetimeNotIn(List<Date> values) {
            addCriterion("Login_createTime not in", values, "loginCreatetime");
            return (Criteria) this;
        }

        public Criteria andLoginCreatetimeBetween(Date value1, Date value2) {
            addCriterion("Login_createTime between", value1, value2, "loginCreatetime");
            return (Criteria) this;
        }

        public Criteria andLoginCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("Login_createTime not between", value1, value2, "loginCreatetime");
            return (Criteria) this;
        }

        public Criteria andLoginSessionIdIsNull() {
            addCriterion("Login_Session_id is null");
            return (Criteria) this;
        }

        public Criteria andLoginSessionIdIsNotNull() {
            addCriterion("Login_Session_id is not null");
            return (Criteria) this;
        }

        public Criteria andLoginSessionIdEqualTo(String value) {
            addCriterion("Login_Session_id =", value, "loginSessionId");
            return (Criteria) this;
        }

        public Criteria andLoginSessionIdNotEqualTo(String value) {
            addCriterion("Login_Session_id <>", value, "loginSessionId");
            return (Criteria) this;
        }

        public Criteria andLoginSessionIdGreaterThan(String value) {
            addCriterion("Login_Session_id >", value, "loginSessionId");
            return (Criteria) this;
        }

        public Criteria andLoginSessionIdGreaterThanOrEqualTo(String value) {
            addCriterion("Login_Session_id >=", value, "loginSessionId");
            return (Criteria) this;
        }

        public Criteria andLoginSessionIdLessThan(String value) {
            addCriterion("Login_Session_id <", value, "loginSessionId");
            return (Criteria) this;
        }

        public Criteria andLoginSessionIdLessThanOrEqualTo(String value) {
            addCriterion("Login_Session_id <=", value, "loginSessionId");
            return (Criteria) this;
        }

        public Criteria andLoginSessionIdLike(String value) {
            addCriterion("Login_Session_id like", value, "loginSessionId");
            return (Criteria) this;
        }

        public Criteria andLoginSessionIdNotLike(String value) {
            addCriterion("Login_Session_id not like", value, "loginSessionId");
            return (Criteria) this;
        }

        public Criteria andLoginSessionIdIn(List<String> values) {
            addCriterion("Login_Session_id in", values, "loginSessionId");
            return (Criteria) this;
        }

        public Criteria andLoginSessionIdNotIn(List<String> values) {
            addCriterion("Login_Session_id not in", values, "loginSessionId");
            return (Criteria) this;
        }

        public Criteria andLoginSessionIdBetween(String value1, String value2) {
            addCriterion("Login_Session_id between", value1, value2, "loginSessionId");
            return (Criteria) this;
        }

        public Criteria andLoginSessionIdNotBetween(String value1, String value2) {
            addCriterion("Login_Session_id not between", value1, value2, "loginSessionId");
            return (Criteria) this;
        }

        public Criteria andLoginEffectivetimeIsNull() {
            addCriterion("Login_effectiveTime is null");
            return (Criteria) this;
        }

        public Criteria andLoginEffectivetimeIsNotNull() {
            addCriterion("Login_effectiveTime is not null");
            return (Criteria) this;
        }

        public Criteria andLoginEffectivetimeEqualTo(Date value) {
            addCriterion("Login_effectiveTime =", value, "loginEffectivetime");
            return (Criteria) this;
        }

        public Criteria andLoginEffectivetimeNotEqualTo(Date value) {
            addCriterion("Login_effectiveTime <>", value, "loginEffectivetime");
            return (Criteria) this;
        }

        public Criteria andLoginEffectivetimeGreaterThan(Date value) {
            addCriterion("Login_effectiveTime >", value, "loginEffectivetime");
            return (Criteria) this;
        }

        public Criteria andLoginEffectivetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("Login_effectiveTime >=", value, "loginEffectivetime");
            return (Criteria) this;
        }

        public Criteria andLoginEffectivetimeLessThan(Date value) {
            addCriterion("Login_effectiveTime <", value, "loginEffectivetime");
            return (Criteria) this;
        }

        public Criteria andLoginEffectivetimeLessThanOrEqualTo(Date value) {
            addCriterion("Login_effectiveTime <=", value, "loginEffectivetime");
            return (Criteria) this;
        }

        public Criteria andLoginEffectivetimeIn(List<Date> values) {
            addCriterion("Login_effectiveTime in", values, "loginEffectivetime");
            return (Criteria) this;
        }

        public Criteria andLoginEffectivetimeNotIn(List<Date> values) {
            addCriterion("Login_effectiveTime not in", values, "loginEffectivetime");
            return (Criteria) this;
        }

        public Criteria andLoginEffectivetimeBetween(Date value1, Date value2) {
            addCriterion("Login_effectiveTime between", value1, value2, "loginEffectivetime");
            return (Criteria) this;
        }

        public Criteria andLoginEffectivetimeNotBetween(Date value1, Date value2) {
            addCriterion("Login_effectiveTime not between", value1, value2, "loginEffectivetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
